package robot.Controls;


import robot.Base.Vector2D;
import robot.WRobotModels.TwoWheeledRobotModel;

/** The default controller used by TwoWheeledRobotControllerClient from org.robot.Clients.
 *  This specific controller almost implements line tracing 
 *  This is the default controller created.
 */
public class DefaultTwoWheeledController implements Controller {
	/** The robot that can be controlled` */
	TwoWheeledRobot robot;
	
	/** Just stores a handle of the robot for later reference */
	public DefaultTwoWheeledController( TwoWheeledRobot robot ) {
		this.robot = robot;
	}
	
	/** Reimplement this method if you want a better controller.
	 *  
	 *  What you should do:
	 *  Simply read the sensor values available and compute the controls
	 *  and set them on the robot
	 */
	public void computeControl()
	{
	}
	
	final double trunc( double v, double low, double high )
	{
		return (v<low ? low: (v>high ? high : v));
	}
	

}
